<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<table class="no-style">
	<tr>
		<s:iterator value="auths" status="stat">
		<s:if test="#stat.index > 0">
			<s:if test="auths[#stat.index].type != auths[#stat.index-1].type">
			</td></tr>
			<tr>
			<td style="text-align:left;width:100px;font-weight:bold;">
				<label><input type="checkbox" onclick="checkTypeAll(this)" />
				<s:property value="type"/></label>
			</td>
			<td style="text-align:left;">
			</s:if>
		</s:if>
		<s:else>
			<td style="text-align:left;width:100px;font-weight:bold;">
				<label><input type="checkbox" onclick="checkTypeAll(this)"/>
				<s:property value="type"/></label>
			</td>
			<td style="text-align:left;">
		</s:else>
		<label><input type="checkbox" name="authCodes" value="<s:property value="code"/>"
		<s:if test="authCodes !=null && authCodes.contains(code)">checked</s:if> />
		<s:if test="authCodes !=null && authCodes.contains(code)">
		<span style="background-color:#1B6ECA;color:#ffffff;"><s:property value="name"/></span>
		</s:if>
		<s:else>
			<span><s:property value="name"/></span>
		</s:else>
		</label>
		</s:iterator>
		</td>
	</tr>
</table>